---
category: Validator
contributors:
    - JeromeDeLeon
created: '2020-05-06'
title: Check if a value is nil
updated: '2021-10-13'
---

**JavaScript version**

```js isNil.js
const isNil = (value) => value == null;
```

**TypeScript version**

```ts isNil.ts
const isNil = (value: any): boolean => value == null;
```
